package com.Algorithm.HUAWEI.one20211020;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/02/27/13:02
 * @Description:
 * @Target:
 */
public class 句子逆序 {
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String s = bufferedReader.readLine();

        String[] s1 = s.split(" ");

        for (int i = s1.length-1; i >= 0 ; i--) {
            System.out.print(s1[i]+" ");
        }



    }
}
